package com.quan.mall.service;

import com.quan.commons.core.bean.R;
import com.quan.mall.commons.vo.FmsMemberCommisionFreezeVo;
import com.quan.mall.entity.FmsMemberCommisionFreeze;
import com.quan.commons.core.utils.PageUtils;
import com.quan.commons.core.biz.support.MyBaseService;

import java.util.List;

/**
 * 财务-会员佣金冻结
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-03-26 15:19:14
 */
public interface FmsMemberCommisionFreezeService extends MyBaseService<FmsMemberCommisionFreeze> {

    /**
     * 列表查询
     * @param vo
     * @return
     */
    public List<FmsMemberCommisionFreezeVo> queryList(PageUtils pageUtils, FmsMemberCommisionFreezeVo vo) ;

    /**
     * 分页查询
     * @param pageUtils
     * @param vo
     * @return
     */
    public PageUtils queryPage(PageUtils pageUtils, FmsMemberCommisionFreezeVo vo);

    /**
     * 手动入账
     * @param id
     * @return
     */
    R enterNow(Long id);

    /**
     * 获取会员的冻结金额记录
     * @param memberId
     * @return
     */
    List<FmsMemberCommisionFreeze> getMemberFreezeList(Long memberId);

    /**
     * 获取分销订单的冻结金额记录
     * @param orderSn
     * @return
     */
    List<FmsMemberCommisionFreeze> getFreezeByOrderSn(String orderSn);
}

